def get_ver_similarity(ver1,ver2):
    import numpy as np
    # ver1 = np.array(ver1)
    # ver2 = np.array(ver2)
    #矩阵1的列数要和矩阵2的行数相等,
    # 如果不相等抛出异常
    #print(ver1.shape[0],len(ver2))
    if ver1.shape[0] != len(ver2):
        raise ValueError("输入数据格式不正确!!")
    #a点和b点的点乘积
    dotPoint = ver1 @ ver2
    #a点的模*b点的模
    #np.sqrt((ver1 ** 2).sum())
    modelA = np.linalg.norm(ver1)
    modelB = np.linalg.norm(ver2)
    #计算两点的余弦相似度
    return dotPoint / (modelA * modelB)


def getPoint():
    result = [];
    import numpy as np
    result = np.random.randint(1,10,size=2)
    return result
    